package com.baikeyang.common.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author BaiKeyang
 * @since 2019-05-12
 */
@TableName("t_dictionaries")
public class Dictionaries extends BaseModel<Dictionaries>  {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 父级
     */
    @TableField("PARENT")
    private Integer parent;

    /**
     * 名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 值
     */
    @TableField("VALUE")
    private Integer value;

    /**
     * 编码
     */
    @TableField("CODE")
    private String code;

    /**
     * 排序
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Dictionaries{" +
            "id=" + id +
            ", parent=" + parent +
            ", name='" + name + '\'' +
            ", value=" + value +
            ", code='" + code + '\'' +
            ", sort=" + sort +
            ", remark='" + remark + '\'' +
            ", state=" + state +
            '}';
    }
}
